/*
 *  Copyright 2020-2025 the original author or authors.
 *  You cannot use this file unless authorized by the author.
 */

package org.ipig.search.es;

import org.elasticsearch.client.Client;
import org.elasticsearch.client.IndicesAdminClient;

/**
 * 客户端管理服务
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id$$
 * @since 1.0
 */
public interface ElasticService {

    /**
     * 获取连接Client
     *
     * @return
     */
    public Client getClient();

    /**
     * 获取索引管理的IndicesAdminClient
     *
     * @return
     */
    public IndicesAdminClient getAdminClient();

    /**
     * 资源销毁
     */
    public void close();
}
